# 生成偶数集合
evens = {x for x in range(10) if x % 2 == 0}
print(evens)  # 结果：{0, 2, 4, 6, 8}
